<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Register</title>
    <link rel="stylesheet" type="text/css" href="../static/css/register.css">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="../static/js/register-captcha.js"></script>
</head>
<body>
	<div class="container">
		<div class="register-box">
			<div class="head">
				<img src="{{ url_for("static", filename="res/img/logo.png") }}" alt="logo" class="logo">
				<h1 class="title">基于Flask的智能图书管理系统</h1>
			</div>
			<form action="/register" method="post">
				<label for="email">邮箱：</label>
				<input type="email" id="email" name="email" required>
				<label for="captcha">验证码：</label>
				<div class="form-group">
					<input type="text" id="captcha" name="captcha" required>
					<button type="button" id="captcha-btn">获取验证码</button>
				</div>
				<label for="password">密码：</label>
				<input type="password" id="password" name="password" required>
				<label for="confirm-password">确认密码：</label>
				<input type="password" id="confirm-password" name="confirm-password" required>
				<button type="submit">注册</button>
			</form>
            <div class="msg">
                {{ msg }}
            </div>
			<div class="link">
				<p>已有账号？<a href="/loginForm">立即登录</a></p>
			</div>
		</div>

	</div>
</body>
</html>
